package org.bling.star.common.enums;

import org.bling.star.common.command.CommandType;

/**
 * @Describe: 业务请求类型
 * @Date: 2024/5/24
 * @Author: szz
 */

public enum BusinessCommandType implements CommandType {

    POOL_CREATE_POOL(3, "创建聊天池"),
    POOL_JOIN_POOL(4, "加入聊天池"),
    POOL_TALKING(5, "聊天发言"),
    POOL_EXIT(6, "退出聊天池"),
    DISCONNECT(7,"断开连接");
    private final Integer code;
    private final String value;

    BusinessCommandType(int code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return value;
    }
}
